package com.example.shopping1902.utils;

public class URLUtils {
    public static String PUBLIC_URL = "http://172.17.42.192:8080/beikeMarke";
    //公共部分

    //全部分类
    public static String allCategory = PUBLIC_URL + "/biz/queryAllCategory";

    //根据id去选择对应分类信息
    public static String selCategoryById = PUBLIC_URL + "/biz/queryCommodityByCateId?categoryId=";

    //猜你喜欢
    public static String guessLikeURL = PUBLIC_URL + "/biz/guessYouLike";

    //热销商品
    public static String hotGoodsURL = PUBLIC_URL+"/biz/hotCommodity";

    //推荐商品
    public static String recommandURL = PUBLIC_URL+"/biz/recommendCommodity";

    //注册
    public static String regURL = PUBLIC_URL+"/user/register";

    //登录
    public static String loginURL = PUBLIC_URL+"/user/login";

    //更新个人信息
    public static String updateURL = PUBLIC_URL+"/user/updateInfo";

    //添加购物车
    public static String addCartURL = PUBLIC_URL+"/trade/insertShoppingCar";

    // 查询购物车
    public static String queryCartURL = PUBLIC_URL+"/trade/queryShoppingCar";

    //购物车下单支付接口
    public static String cartPayURL = PUBLIC_URL+"/trade/orderShopping";

    //直接购买（不进入购物车）
    public static String directPayURL =PUBLIC_URL+"/trade/insertBought";

    //查询已购买商品
    public static String historyPayURL =PUBLIC_URL+"/trade/querybougth";
}
